# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'yasm'
    version = '1.3.0'
    licenses = [License.GPLv3Plus]
    stype = SourceType.TARBALL
    url = 'https://www.tortall.net/projects/yasm/releases/yasm-%(version)s.tar.gz'
    tarball_checksum = '3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f'

    files_bins = ['yasm']

    def prepare(self):
        if self.config.target_platform == Platform.WINDOWS:
            self.append_env('LDFLAGS', '-lintl')
